package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;

/**
 * @InterfaceName: DishesService
 * @Author: YuanDing
 * @Date: 2024/2/3 20:35
 * @Description: 菜品接口业务层
 */

public interface DishesService {
    /**
     * 获取菜品分页数据
     * @return
     */
    Result<PageResult> getDishesList(DishPageQueryDTO dishPageQueryDTO);

    /**
     * 更新菜品状态
     * @param status
     */
    void startOrStop(Integer status , Long id);

    /**
     * 根据id获取菜品
     * @param id
     * @return
     */
    Result getDisheById(Long id);

    void saveDishes(DishDTO dishDTO);

    Result getDishByCategoryId(Integer categoryId);

    void removeDishBatch(String ids);

    void updateDish(DishDTO dishDTO);
}
